import request from '@/utils/request'

export function getCoupons(query) {
  let url = '/api/coupons'
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

export function publish(data) {
  let url = '/api/coupons/publish'
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

